home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-07-09 | 3.7 KB | 197 lines | [TEXT/EDIT] |
- %!
- % Oberon PostScript Header File
- %
- % Adjust Font Translation Tables in this Document
- % According to Your Preferences.
- % PostScript Versions of Oberon Fonts will be
- % Available at some Later Date.
- %
- % m moveto x y -> -
- % s String s -> -
- % l Line x y w h -> -
- % x XLine x y dx dy -> -
- % c scaled Circle x y a b -> -
- % b shaded box x y w h col -> -
- % i pattern image x y w h mode -> -
- % p Page n -> -
- % f font mapping fnt -> -
-
- /m {moveto} def
- /s {show} def
-
- /l
- { /ph exch def
- /pw exch def
- newpath
- moveto
- pw 0 rlineto
- 0 ph rlineto
- pw neg 0 rlineto
- closepath
- 0 setgray
- fill
- } def
-
- /x
- { /dy exch def
- /dx exch def
- newpath
- moveto
- dx dy rlineto
- 0 setlinewidth
- stroke
- } def
-
- /c
- { /pb exch def
- /pa exch def
- newpath
- gsave
- translate
- 1 pb pa div scale
- 0 0 pa 0 360 arc
- 0 setlinewidth
- stroke
- grestore
- } def
-
- /maxwh
- { pw ph gt {/max pw def} {/max ph def} ifelse
- } def
-
- /shade
- { col 0 eq {1 setgray} if
- col 1 eq {0.99 setgray} if
- col 2 eq {0.9 setgray} if
- col 3 eq {0.65 setgray} if
- col 4 eq {0.35 setgray} if
- col 5 eq {0 setgray} if
- fill
- } def
-
- /texture
- { gsave
- clip
- newpath
- col 6 eq
- { px py ph add moveto
- maxwh
- max 10 idiv 1 add
- { max max rlineto
- max neg dup 20 sub rmoveto
- } repeat
- } if
- col 7 eq
- { px py moveto
- maxwh
- max 10 idiv 1 add
- { max neg max rlineto
- max 20 add max neg rmoveto
- } repeat
- } if
- col 8 eq
- { px py moveto
- pw 15 idiv 1 add
- { 0 ph rlineto
- 15 ph neg rmoveto
- } repeat
- } if
- col 9 eq
- { px py moveto
- ph 15 idiv 1 add
- { pw 0 rlineto
- pw neg 15 rmoveto
- } repeat
- } if
- 0 setlinewidth
- stroke
- grestore
- } def
-
- /b
- { /col exch def
- /ph exch def
- /pw exch def
- /py exch def
- /px exch def
- newpath
- px py moveto
- pw 0 rlineto
- 0 ph rlineto
- pw neg 0 rlineto
- closepath
- col 6 lt {shade} {texture} ifelse
- } def
-
- /i
- { /mode exch def
- /ph exch def
- /pw exch def
- /py exch def
- /px exch def
- /picstr 256 string def
- /nofbytes pw 7 add 8 idiv ph mul def
- gsave
- px py translate
- pw 2 mul ph 2 mul scale
- pw ph 1 [pw 0 0 ph 0 0]
- {nofbytes 256 ge
- { currentfile picstr readhexstring
- /nofbytes nofbytes 256 sub def
- pop
- }
- { /picstr nofbytes string def
- currentfile picstr readhexstring
- pop
- /nofbytes 0 def
- } ifelse
- } image
- grestore
- } def
-
- /init
- { .23 .23 scale
- 100 50 translate
- } def
-
- /p
- { /#copies exch def
- showpage
- init
- } def
-
- /map
- { ofnt eq {findfont exch scalefont setfont} {pop pop} ifelse
- } def
-
- /f
- { /ofnt exch def
- /Helvetica findfont 41 scalefont setfont % default font
-
- 37 /Helvetica (Syntax10.Scn.Fnt) map
- 37 /Helvetica-Oblique (Syntax10i.Scn.Fnt) map
- 37 /Helvetica-Bold (Syntax10b.Scn.Fnt) map
-
- 44 /Helvetica (Syntax12.Scn.Fnt) map
- 44 /Helvetica-Oblique (Syntax12i.Scn.Fnt) map
- 44 /Helvetica-Bold (Syntax12b.Scn.Fnt) map
-
- 51 /Helvetica (Syntax14.Scn.Fnt) map
- 51 /Helvetica-Oblique (Syntax14i.Scn.Fnt) map
- 51 /Helvetica-Bold (Syntax14b.Scn.Fnt) map
-
- 59 /Helvetica (Syntax16.Scn.Fnt) map
- 59 /Helvetica-Oblique (Syntax16i.Scn.Fnt) map
- 59 /Helvetica-Bold (Syntax16b.Scn.Fnt) map
-
- 88 /Helvetica (Syntax24.Scn.Fnt) map
- 88 /Helvetica-Oblique (Syntax24i.Scn.Fnt) map
- 88 /Helvetica-Bold (Syntax24b.Scn.Fnt) map
-
- 30 /Courier (Gacha10l) map
-
- } def
-
- init
- % --- end of header
-